<?php
/**
 * @file ct.search.updateindex.php
 * @author Alejandro Dario Simi
 * @date $Date: 2013-01-01 04:40:44 +0000 (Tue, 01 Jan 2013) $
 *
 * $Id: ct.search.updateindex.php 48 2013-01-01 04:40:44Z daemonraco@gmail.com $
 * $URL: http://wcomix.googlecode.com/svn/tags/wcomix-1.0-BETA1/cron/ct.search.updateindex.php $
 */
class WCUpdateSearchIndex extends WCCronTool {
	public function run($spacer="") {
		global	$wcSearch;
		$wcSearch->updateIndex(true, $spacer);
	}
	public function showHelp($spacer="") {
		echo "{$spacer}This updated search index by loading all indexed items.\n\n";
		echo "{$spacer}It requires no extra parameters.\n";
	}

	protected function loadOptions() {
		$this->_optionsLoaded = true;
	}
}
?>